﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace HROReporting.Model.Studenten
{
    public class EmailValidationSpecification
    {
        private static Regex _emailregex = new Regex(@"^\d{7}@hr\.nl");

        public bool IsSatisfiedBy(string email)
        {
            return _emailregex.IsMatch(email);
        }
    }
}
